package com.itheima.service.impl;

import com.itheima.mapper.Bookmapper;
import com.itheima.pojo.Book;
import com.itheima.service.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BookServiceImpl implements BookService {

    @Autowired
    private Bookmapper bookmapper;


    @Override
    public Book selectById(Integer id) {
        Book book = bookmapper.selectById(id);
        return book;
    }
}
